<template>
    <div class="box-border" :style="`top: ${top}vh;left:${left}vw`">
        <div class="box">
            <div>室温:{{ roomTemp }}℃</div>
            <div>设温:{{ setTemp }}℃</div>
            <img src="../assets/img/kongtiao.png" alt="">
        </div>
    </div>
</template>


<script>
export default {
    props: {
        roomTemp: {
            type: String,
            default: "37.5"
        },
        setTemp: {
            type: String,
            default: "26"
        },
        top: {
            type: Number,
            default: 12.5
        },
        left: {
            type: Number,
            default: 7.4
        }
    }
}
</script>


<style lang="less" scoped>
.box-border {
    position: absolute;
    // top: 12.5vh;
    // left: 7.4vw;

    &:hover {
        cursor: pointer;
    }
}
.box {
    width: 3.5vw;
    height: 7.4vh;
    background-color: #fff;
    border-radius: 5px;
    border: 2px solid rgba(39, 143, 250, 1);
    transform: scale(0.45, 0.45);

    div {
        font-size: 5px;
        color: #000;
        line-height: 1.2vh;
    }

    img{
        width: 3.2vw;
        height: 5vh;
    }
}
</style>